package com.park.service.impl.log;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.log.OperationLogModel;
import com.park.client.service.log.OperationLogService;
import com.park.dao.log.OperationLogMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("operationLogService")
public class OperationLogServiceImpl extends BaseServiceImpl<OperationLogModel> implements OperationLogService {
	
	@Autowired
	private OperationLogMapper operationLogMapper;
	
	@Override
	public List<OperationLogModel> list() {
		return operationLogMapper.list();
	}

	@Override
	public boolean insert(OperationLogModel log) {
		return operationLogMapper.insert(log)==1;
	}

	@Override
	public boolean deleteById(int id) {
		return operationLogMapper.deleteById(id)==1;
	}


}
